package com.unlcn.ils.crsc.dao.model.crsc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 抓取数据日志表
 * </p>
 *
 * @author qichao
 * @since 2018-04-29
 */
@TableName("crsc_otd_log")
public class CrscOtdLog extends Model<CrscOtdLog> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 调用方式 1  为文件 2 为web service
     */
	@TableField("call_type")
	private String callType;
    /**
     * 接口地址 如果为文件就是FTP的地址，如果是WS，就是WS的地址。
     */
	@TableField("call_url")
	private String callUrl;
    /**
     * 调取类型 拉取还是推送(0:拉取，1:推送)
     */
	@TableField("pull_or_push")
	private String pullOrPush;
    /**
     * 查询时间
     */
	@TableField("system_query_time")
	private Date systemQueryTime;
    /**
     * 抓取开始时间
     */
	@TableField("call_start_time")
	private Date callStartTime;
    /**
     * 接口返回时间
     */
	@TableField("call_end_time")
	private Date callEndTime;
    /**
     * 调用参数
     */
	private String parameters;
    /**
     * 调用的文件数
     */
	@TableField("call_file_count")
	private Integer callFileCount;
    /**
     * 调用的文件
     */
	@TableField("call_files")
	private String callFiles;
    /**
     * 文件存储目录
     */
	@TableField("files_catalog")
	private String filesCatalog;
    /**
     * 返回的记录数
     */
	@TableField("result_count")
	private Integer resultCount;

    /**
     * 是否成功
     */
	@TableField("is_success")
	private Boolean isSuccess;
    /**
     * 状态码
     */
	@TableField("message_code")
	private String messageCode;
    /**
     * 返回信息
     */
	private String message;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCallType() {
		return callType;
	}

	public void setCallType(String callType) {
		this.callType = callType;
	}

	public String getCallUrl() {
		return callUrl;
	}

	public void setCallUrl(String callUrl) {
		this.callUrl = callUrl;
	}

	public String getPullOrPush() {
		return pullOrPush;
	}

	public void setPullOrPush(String pullOrPush) {
		this.pullOrPush = pullOrPush;
	}

	public Date getSystemQueryTime() {
		return systemQueryTime;
	}

	public void setSystemQueryTime(Date systemQueryTime) {
		this.systemQueryTime = systemQueryTime;
	}

	public Date getCallStartTime() {
		return callStartTime;
	}

	public void setCallStartTime(Date callStartTime) {
		this.callStartTime = callStartTime;
	}

	public Date getCallEndTime() {
		return callEndTime;
	}

	public void setCallEndTime(Date callEndTime) {
		this.callEndTime = callEndTime;
	}

	public String getParameters() {
		return parameters;
	}

	public void setParameters(String parameters) {
		this.parameters = parameters;
	}

	public Integer getCallFileCount() {
		return callFileCount;
	}

	public void setCallFileCount(Integer callFileCount) {
		this.callFileCount = callFileCount;
	}

	public String getCallFiles() {
		return callFiles;
	}

	public void setCallFiles(String callFiles) {
		this.callFiles = callFiles;
	}

	public String getFilesCatalog() {
		return filesCatalog;
	}

	public void setFilesCatalog(String filesCatalog) {
		this.filesCatalog = filesCatalog;
	}

	public Integer getResultCount() {
		return resultCount;
	}

	public void setResultCount(Integer resultCount) {
		this.resultCount = resultCount;
	}


	public Boolean getSuccess() {
		return isSuccess;
	}

	public void setSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getMessageCode() {
		return messageCode;
	}

	public void setMessageCode(String messageCode) {
		this.messageCode = messageCode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CrscOtdLog{" +
			", id=" + id +
			", callType=" + callType +
			", callUrl=" + callUrl +
			", pullOrPush=" + pullOrPush +
			", systemQueryTime=" + systemQueryTime +
			", callStartTime=" + callStartTime +
			", callEndTime=" + callEndTime +
			", parameters=" + parameters +
			", callFileCount=" + callFileCount +
			", callFiles=" + callFiles +
			", filesCatalog=" + filesCatalog +
			", resultCount=" + resultCount +
			", isSuccess=" + isSuccess +
			", messageCode=" + messageCode +
			", message=" + message +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
